package com.kj.tms.system.service.org.dao;

import com.kj.tms.common.bean.dao.BaseMapper;
import com.kj.tms.common.bean.dto.TreeData;
import com.kj.tms.pri.system.org.dto.IndustryInfoDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ProjectName:
 * @Package: com.kj.tms.system.service.org.dao
 * @ClassName: IndustryInfoMapper
 * @Description: 行业信息dao类
 * @Author: 董世栋
 * @CreateDate:
 * @UpdateUser:
 * @UpdateDate:
 * @UpdateRemark:
 * @Version: 1.0
 * Copyright: 北京宏图天安 Copyright (c) 2017
 */
@Repository
public interface IndustryInfoMapper extends BaseMapper<IndustryInfoDto> {

    /**
     * @param industryCode
     * @return list
     * @throws
     * @method listByPindustryCode
     * @description 通过上级代码获取行业信息
     * @author 董世栋
     * @version 1.0
     * @date
     */
    List<TreeData> listByPindustryCode(@Param(value = "industryCode") String industryCode);

    /**
     * @param industryCode
     * @return IndustryInfoDto
     * @throws
     * @method getByCode
     * @description 通过子节点代码获取行业信息
     * @author 董世栋
     * @version 1.0
     * @date
     */
    IndustryInfoDto getByCode(@Param(value = "industryCode") String industryCode);

    /**
     * @param industryCode
     * @return industryName
     * @throws
     * @method getIndustryName
     * @description 获取行业信息name
     * @author 董世栋
     * @version 1.0
     * @date
     */
    String getIndustryName(@Param(value = "industryCode") String industryCode);
}